<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/modules/cms/front/include/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
	<title>${article.title} - ${category.name}</title>
	<meta name="decorator" content="cms_default_${site.theme}"/>
	<meta name="description" content="${article.description} ${category.description}" />
	<meta name="keywords" content="${article.keywords} ${category.keywords}" />
	<script type="text/javascript">
		$(document).ready(function() {
			if ("${category.allowComment}"=="1" && "${article.articleData.allowComment}"=="1"){
				$("#comment").show();
				page(1);
			}
		});
		function page(n,s){
			$.get("${ctx}/comment",{theme: '${site.theme}', 'category.id': '${category.id}',
				contentId: '${article.id}', title: '${article.title}', pageNo: n, pageSize: s, date: new Date().getTime()
			},function(data){
				$("#comment").html(data);
			});
		}
	</script>
</head>
<body>
<style type="text/css">
	.breadcrumb {
		height: 30px;
		background: url(/static/images/line_details.png);
		overflow: hidden;
		text-overflow: ellipsis;
		white-space: nowrap;
	}

	.breadcrumb li {
		display: inline;
		height: 30px;
		line-height: 30px;
		text-align: center;
	}
</style>
<div class="main_div clear">
	<div>
		<ul class="breadcrumb">
			<cms:frontCurrentPosition category="${category}"/>
		</ul>
	</div>

	<div style="margin-top: 10px">
		<div class="left_div">
			<div class="left_div_one">
				<div class="left_title_back">
					栏目列表
				</div>
				<ul>
					<cms:frontCategoryList categoryList="${categoryList}"/>
				</ul>
			</div>
		</div>

		<div class="right_container">
			<div><div class="right_title"><span>${article.title}</span></div>
			</div>
			<div class="margin_top">
				<table width="820px" cellspacing="0" class="list_table">
					<tbody>
					<tr>
						<td style="padding-left: 10px">
							发布时间：<fmt:formatDate value="${article.createDate}" pattern="yyyy-MM-dd HH:mm:ss"/> &nbsp;
							<a href="javascript:history.back(-1)" style="color:#FFC423;">【返回上一页】</a>
						</td>
						<td style="padding-right: 10px;text-align: right">
							发布人：${article.user.name}
						</td>
					</tr>
					</tbody>
				</table>
			</div>
			<br />
			<div id="artical_content" class="artical_content">
				${article.articleData.content}
			</div>
		</div>
	</div>
</div>
</body>
</html>